﻿import request from '@/utils/request';
// list
export const baikekuList = (params) => {
    return request({
        url: '/baikeku/page',
        method: 'post',
        data: params,
    })
};
export const baikekuDetail = (id) => {
    return request({
        url: '/baikeku/'+id,
        method: 'get',
    })
};
// add
export const baikekuSave = (params) => {
    return request({
        url: '/baikeku',
        method: 'post',
        data: params,
    })
};
// updt
export const baikekuEdit = (params) => {
    return request({
        url: '/baikeku',
        method: 'put',
        data: params,
    })
};
// delete
export const baikekuDelete = (id) => {
    return request({
        url: '/baikeku/'+id,
        method: 'delete',
    })
};
// pldel
export const baikekuDeleteList = (baikekus) => {
    return request({
        url: '/baikeku/deleteList',
        data:{list:baikekus},
        method: 'post',
    })
};
// all
export const baikekuAllList = () => {
    return request({
        url: '/baikeku',
        method: 'get',
    })
};

